package com.trkj.dao.wdm;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojo.CharacteristicItem;

public interface CharacteristicItemDAO extends CrudRepository<CharacteristicItem, Long>{
	@Query("from CharacteristicItem r ")
	public List<CharacteristicItem> queryByNaPage(Pageable p);
		
	@Query("from CharacteristicItem f where f.charaName like ?1")
	public List<CharacteristicItem> query_By_idorname(String text,Pageable p);
	@Query("select count(f) from CharacteristicItem f where f.charaName like ?1")
	public long count(String string);
}
